/**
 * PictureDao.java
 *
 *
 * $LastChangedBy: allen $
 * $LastChangedDate: 2007-12-07 15:48:34 +0800 $
 * $Revision: 1399 $
 */
package com.myspace.dao;

import java.util.Date;
import java.util.List;

import com.myspace.domain.Picture;
import com.myspace.domain.User;

/**
 * Dao interface for picture.
 *
 * @author Allen.Chen
 *
 */
public interface PictureDao extends GenericDao<Picture, Long> {

	public List<Picture> getPictureListByTag(final User user, final String tag,
			final int pageNum, final int pageSize);

	public List<Picture> getPictureListByDate(final User user,
			final Date fromDate, final Date endDate, final int pageNum,
			final int pageSize);

	public int getPictureNumByDate(final Long userId, final Date fromDate, final Date toDate) ;

	public int getPictureNumByTag(final Long userId, final String tag) ;

	public List<Picture> getPictureList(final User user);
}
